@import "~themes/vars.less";
.u_tag {
  color: @color-base;
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 0 24px 0 8px;
  overflow: hidden;
  float: left;
  margin-right: 4px;
  position: relative;
  max-width: 99%;
  height: 24px;
  margin-top: 3px;
  line-height: 22px;
  max-width: 99%;
  cursor: default;
  font-size: 12px;
  .label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
  }
  .close {
    position: absolute;
    font-size: 10px;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -0.125em;
    text-rendering: optimizeLegibility;
    position: absolute;
    right: 5px;
    top: -1px;
    color: @color-caption;
    font-weight: bold;
    line-height: inherit;
    cursor: pointer;
    display: inline-block;
    &:hover {
      color: @color-base;
    }
  }
}

.u_tag_disable {
  cursor: not-allowed;
  color: @color-disable;
  .close {
    cursor: not-allowed;
    color: @color-disable;
    &:hover {
      color: @color-disable;
    }
  }
}